<?php
include_once '../connexpdo.php';
$query = 'DELETE FROM appels WHERE idAppels="' . $_POST ['idEnvoiAjax'] . '";';
$return = $connexion->query ( $query );
// $vretour=array();

// if ($return->rowCount ()==0) {
// $data[]=array("id"=>"","nature"=>"","actif"=>"");
// array_push($vretour, $data);
// }
// else{
// while($row= $return->fetch()){
// $data[]=array("id"=>$row['id'],"nature"=>utf8_array($row['nature']),"actif"=>$row['actif']);
// array_push($vretour, $data);
// }
// }

echo "Suppression effectué";
function utf8_array($data) {
	return utf8_encode ( $data );
}
?>